/**
 * @author EmiBen 
 * @version 1
 * @since 16/02/2015
 */

package MainPruebas;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.SQLException;

import exceptions.PersistenciaException;
import PersistenciaDAOs.DAOPunto;
import VOs.VOPunto;
import logica.ConexionBD;

public class MainDB {
	
	
	public static void main(String[] args) throws IOException, PersistenciaException{
		try{
			
			
			
			
			/*
			DAOPunto daoP = new DAOPunto();
			InputStreamReader is = new InputStreamReader(System.in);
			BufferedReader buf = new BufferedReader(is);
			System.out.print("Ingrese id: \n");
			String id = buf.readLine(); 
			System.out.print("Ingrese coorX: \n");
			String coordX = buf.readLine(); 
			System.out.print("Ingrese coorY: \n");
			String coorY = buf.readLine();
			
			VOPunto voP = new VOPunto(Integer.parseInt(id), Integer.parseInt(coordX), Integer.parseInt(coorY));
			daoP.insert(voP);
			System.out.print("Guardado\n");
			
			//System.out.print("Ingrese id a devolver \n");
			//id = buf.readLine();
			VOPunto vP = daoP.select(1);
			
			System.out.print( vP.getId() + "\n");
			System.out.print( vP.getCoordX() + "\n");
			System.out.print( vP.getCoordY() + "\n");*/
			
			
		}		finally{
			
	}
	}
			
			
}
